home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.event;
-
- import java.util.EventObject;
-
- public class ListDataEvent extends EventObject {
- public static final int CONTENTS_CHANGED = 0;
- public static final int INTERVAL_ADDED = 1;
- public static final int INTERVAL_REMOVED = 2;
- private int type;
- private int index0;
- private int index1;
-
- public ListDataEvent(Object source, int type, int index0, int index1) {
- super(source);
- this.type = type;
- this.index0 = index0;
- this.index1 = index1;
- }
-
- public int getIndex0() {
- return this.index0;
- }
-
- public int getIndex1() {
- return this.index1;
- }
-
- public int getType() {
- return this.type;
- }
- }
-